#ifndef DBTABUSER_H
#define DBTABUSER_H
#include "dbtabbase.h"
#define USERNAME_LEN 24
class DBTabUser : public DBTabBase
{
public:
    static DBTabUser *getDBTab(){
        static DBTabUser tab;
        return &tab;
    }
    static const QLatin1String TAB_NAME;
    static const char* _USER_NAME;
    static const char* _USER_CODE;
    static const char* _PINYIN;
    static const char* _PASSWD;
    static const char* _PERMISSION;
    static const char* _PHONE_NUM;
    static const char* _ADDRESS;
    void createTab(QSqlDatabase &db);
private:
    DBTabUser();
};

#endif // DBTABUSER_H
